package com.zzh.live

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*


class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val player=HaoPlayer()
        // rtmp://58.200.131.2:1935/livetv/gdtv 广东卫视
        player.setDataSource("http://ivi.bupt.edu.cn/hls/cctv7.m3u8")
        player.setSurfaceView(surface)
        player.prepare()

    }




}